#include "PredefinedCameraDescriptions.h";

PredefinedCameraDescriptions::PredefinedCameraDescriptions(void)
{
}

//--------------------------------------------------------------

PredefinedCameraDescriptions::~PredefinedCameraDescriptions(void)
{
	int count = lCameraDescriptions.size();
	for(int i=0;i<count;i++)
	{
		delete lCameraDescriptions.at(i);
	}
	lCameraDescriptions.clear();
}

//--------------------------------------------------------------

void PredefinedCameraDescriptions::saveCamera(Ogre::String description, Ogre::Vector3 poz, Ogre::Quaternion ori)
{
	lCameraDescriptions.push_back(new CameraDescription(description,poz,ori));
}

//--------------------------------------------------------------

void PredefinedCameraDescriptions::saveCamera(Ogre::Camera *mCamera, Ogre::String description)
{
	lCameraDescriptions.push_back(new CameraDescription(description,mCamera->getPosition(),mCamera->getOrientation()));
}

//--------------------------------------------------------------

void PredefinedCameraDescriptions::saveCamera(Ogre::Camera *mCamera)
{
	lCameraDescriptions.push_back(new CameraDescription("",mCamera->getPosition(),mCamera->getOrientation()));
}

